package com.xunlai.infra.permission.manager.web.converter;

import com.xunlai.infra.permission.manager.web.vo.user.CreateUserAccountReqVo;
import com.xunlai.infra.permission.manager.web.vo.user.UserAccountVo;
import com.xunlai.infra.permission.storage.entity.UserAccount;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author liang
 * @date 12/8/22 10:26 PM
 */
@Mapper
public interface UserAccountConverter {

    UserAccountConverter INSTANCE = Mappers.getMapper(UserAccountConverter.class);

    UserAccount convertCreateReq2Account(CreateUserAccountReqVo createUserAccountReqVo);

    UserAccountVo convertAccount2ResponseVo(UserAccount userAccount);
}
